package com.example.demo01.Service.webService;

import com.example.demo01.Dao.webDao.AdminUserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminUserService {
    @Autowired
    private AdminUserDao adminUserDao;

    /**
     * 验证账户是否有效:通过账户名称
     * */
    public int validAccounrByAccount(String account,String password){
        return adminUserDao.validAccounrByAccount(account,password);
    }

    /**
     * 验证账户是否有效:通过手机号
     * */
    public int validAccounrByPhoneNum(String phoneNum,String password){
        return adminUserDao.validAccounrByPhoneNum(phoneNum,password);
    }

}
